#pragma once

#ifndef _INC_nettool_
#define _INC_nettool_


/*  net_tool.h


	v0.0 17/08/1994: MA Initial
	v0.1 28/02/2015: TJ update

*****************************************************************************/
#define u_short unsigned short
#define TIMEOUT  1

int netTCPserverOpen(u_short tcp_port);

int netTCPclientOpen(char *hostname, u_short tcp_port);

int netSend(char *sendbuf, int length);

void netDoneSend();

int netReceive(char *readbuf, int length);


int netClose(void);

int netClean(void);

#endif _INC_nettool_


